<!--<?php
//use yii\widgets\ActiveForm;
?>

<?php// $form = ActiveForm::begin(['options'=>['enctype' => 'multipart/form-data']]) ?>

<?//= $form->field($model,'imageFile')->fileInput() ?>

<!--<button>Submit</button>-->

<?php// ActiveForm::end() ?>


<?php
use yii\widgets\ActiveForm;
?>

<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
<!--多图上传，imageFiles[]-->
<?= $form->field($model, 'imageFiles[]')->fileInput(['multiple' => true, 'accept' => 'image/*']) ?>

    <button>Submit</button>

<?php ActiveForm::end() ?>